package com.xuexiang.xuidemo.ability;

import ohos.aafwk.content.Intent;

import com.xuexiang.xuidemo.slice.ProgressBarAbilitySlice;
import com.xuexiang.xuidemo.slice.progress.ArcLoadingViewSlice;
import com.xuexiang.xuidemo.slice.progress.MaterialProgressBarSlice;
import com.xuexiang.xuidemo.slice.progress.RatingBarSlice;
import com.xuexiang.xuidemo.slice.progress.RotateLoadingViewSlice;

public class ProgressBarAbility extends BaseStatusAbility {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(ProgressBarAbilitySlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, ArcLoadingViewSlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, RotateLoadingViewSlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, MaterialProgressBarSlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, RatingBarSlice.class.getName());

    }
}
